package name.mrzc;

import name.mrzc.cache.CacheManage;
import name.mrzc.cache.ICache;

public class TestCache {

	public static void main(String[] args) {
		ICache<String, String> cache = CacheManage.getCache("SAME");

		System.out.println(cache.get("1"));
		System.out.println(cache.get("5"));
		System.out.println(cache.containsKey("3"));

		System.out.println(cache.containsKey("3"));
		System.gc();
		try {
			Thread.sleep(1);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		System.out.println(cache.get("1"));
		System.out.println(cache.get("5"));
		System.out.println(cache.containsKey("5"));

	}

}
